plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
fib(x) → fibiter(x, 0, 0, s(0))
fibiter(b, c, x, y) → if(lt(c, b), b, c, x, y)
if(false, b, c, x, y) → x
if(true, b, c, x, y) → fibiter(b, s(c), y, plus(x, y))
↳ QTRS
↳ Overlay + Local Confluence
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
fib(x) → fibiter(x, 0, 0, s(0))
fibiter(b, c, x, y) → if(lt(c, b), b, c, x, y)
if(false, b, c, x, y) → x
if(true, b, c, x, y) → fibiter(b, s(c), y, plus(x, y))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
fib(x) → fibiter(x, 0, 0, s(0))
fibiter(b, c, x, y) → if(lt(c, b), b, c, x, y)
if(false, b, c, x, y) → x
if(true, b, c, x, y) → fibiter(b, s(c), y, plus(x, y))
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
LT(s(x), s(y)) → LT(x, y)
IF(true, b, c, x, y) → PLUS(x, y)
FIBITER(b, c, x, y) → LT(c, b)
FIBITER(b, c, x, y) → IF(lt(c, b), b, c, x, y)
IF(true, b, c, x, y) → FIBITER(b, s(c), y, plus(x, y))
FIB(x) → FIBITER(x, 0, 0, s(0))
PLUS(s(x), y) → PLUS(x, y)
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
fib(x) → fibiter(x, 0, 0, s(0))
fibiter(b, c, x, y) → if(lt(c, b), b, c, x, y)
if(false, b, c, x, y) → x
if(true, b, c, x, y) → fibiter(b, s(c), y, plus(x, y))
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
LT(s(x), s(y)) → LT(x, y)
IF(true, b, c, x, y) → PLUS(x, y)
FIBITER(b, c, x, y) → LT(c, b)
FIBITER(b, c, x, y) → IF(lt(c, b), b, c, x, y)
IF(true, b, c, x, y) → FIBITER(b, s(c), y, plus(x, y))
FIB(x) → FIBITER(x, 0, 0, s(0))
PLUS(s(x), y) → PLUS(x, y)
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
fib(x) → fibiter(x, 0, 0, s(0))
fibiter(b, c, x, y) → if(lt(c, b), b, c, x, y)
if(false, b, c, x, y) → x
if(true, b, c, x, y) → fibiter(b, s(c), y, plus(x, y))
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
LT(s(x), s(y)) → LT(x, y)
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
fib(x) → fibiter(x, 0, 0, s(0))
fibiter(b, c, x, y) → if(lt(c, b), b, c, x, y)
if(false, b, c, x, y) → x
if(true, b, c, x, y) → fibiter(b, s(c), y, plus(x, y))
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
LT(s(x), s(y)) → LT(x, y)
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
LT(s(x), s(y)) → LT(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
PLUS(s(x), y) → PLUS(x, y)
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
fib(x) → fibiter(x, 0, 0, s(0))
fibiter(b, c, x, y) → if(lt(c, b), b, c, x, y)
if(false, b, c, x, y) → x
if(true, b, c, x, y) → fibiter(b, s(c), y, plus(x, y))
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
PLUS(s(x), y) → PLUS(x, y)
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
PLUS(s(x), y) → PLUS(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
FIBITER(b, c, x, y) → IF(lt(c, b), b, c, x, y)
IF(true, b, c, x, y) → FIBITER(b, s(c), y, plus(x, y))
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
fib(x) → fibiter(x, 0, 0, s(0))
fibiter(b, c, x, y) → if(lt(c, b), b, c, x, y)
if(false, b, c, x, y) → x
if(true, b, c, x, y) → fibiter(b, s(c), y, plus(x, y))
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
FIBITER(b, c, x, y) → IF(lt(c, b), b, c, x, y)
IF(true, b, c, x, y) → FIBITER(b, s(c), y, plus(x, y))
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
fib(x0)
fibiter(x0, x1, x2, x3)
if(false, x0, x1, x2, x3)
if(true, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
FIBITER(b, c, x, y) → IF(lt(c, b), b, c, x, y)
IF(true, b, c, x, y) → FIBITER(b, s(c), y, plus(x, y))
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
(1) (FIBITER(x4, s(x5), x7, plus(x6, x7))=FIBITER(x8, x9, x10, x11) ⇒ FIBITER(x8, x9, x10, x11)≥IF(lt(x9, x8), x8, x9, x10, x11))
(2) (FIBITER(x4, s(x5), x7, x11)≥IF(lt(s(x5), x4), x4, s(x5), x7, x11))
(3) (IF(lt(x13, x12), x12, x13, x14, x15)=IF(true, x16, x17, x18, x19) ⇒ IF(true, x16, x17, x18, x19)≥FIBITER(x16, s(x17), x19, plus(x18, x19)))
(4) (lt(x13, x12)=true ⇒ IF(true, x12, x13, x14, x15)≥FIBITER(x12, s(x13), x15, plus(x14, x15)))
(5) (true=true ⇒ IF(true, s(x24), 0, x14, x15)≥FIBITER(s(x24), s(0), x15, plus(x14, x15)))
(6) (lt(x26, x27)=true∧(∀x28,x29:lt(x26, x27)=true ⇒ IF(true, x27, x26, x28, x29)≥FIBITER(x27, s(x26), x29, plus(x28, x29))) ⇒ IF(true, s(x27), s(x26), x14, x15)≥FIBITER(s(x27), s(s(x26)), x15, plus(x14, x15)))
(7) (IF(true, s(x24), 0, x14, x15)≥FIBITER(s(x24), s(0), x15, plus(x14, x15)))
(8) (IF(true, x27, x26, x14, x15)≥FIBITER(x27, s(x26), x15, plus(x14, x15)) ⇒ IF(true, s(x27), s(x26), x14, x15)≥FIBITER(s(x27), s(s(x26)), x15, plus(x14, x15)))
POL(0) = 0
POL(FIBITER(x1, x2, x3, x4)) = -1 + x1 - x2
POL(IF(x1, x2, x3, x4, x5)) = -1 - x1 + x2 - x3
POL(c) = -2
POL(false) = 1
POL(lt(x1, x2)) = 0
POL(plus(x1, x2)) = 1
POL(s(x1)) = 1 + x1
POL(true) = 0
The following pairs are in Pbound:
IF(true, b, c, x, y) → FIBITER(b, s(c), y, plus(x, y))
The following rules are usable:
IF(true, b, c, x, y) → FIBITER(b, s(c), y, plus(x, y))
false → lt(x, 0)
lt(x, y) → lt(s(x), s(y))
true → lt(0, s(y))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
↳ QDP
↳ DependencyGraphProof
FIBITER(b, c, x, y) → IF(lt(c, b), b, c, x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
plus(0, y) → y
plus(s(x), y) → s(plus(x, y))
plus(0, x0)
plus(s(x0), x1)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))